package com.example.jobback.mapper;


import com.example.jobback.common.enums.Edu;
import com.example.jobback.po.Seeker;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @InterfaceName: SeekerMapper
 * @Description: 求职者mapper
 * @Author: lhb
 * @Date: 2025/5/14
 */
@Mapper
public interface SeekerMapper {

    int register(Seeker seeker);

    //user不用改
    int editBasicMessage(@Param("seeker") Seeker user);


    Seeker getSeekerByUserId(Long userId);

    List<Seeker> getSeekers();

    List<Seeker> getSeekerByUserIds(@Param("userIds") List<Long> userIds);

    List<Seeker> getGoodSeekerList(@Param("industry") String industry,
                                   @Param("positionName") String positionName,
                                   @Param("eduList") List<Edu> eduList,
                                   @Param("lowestSalaryMonth") Long lowestSalaryMonth,
                                   @Param("highestSalaryMonth") Long highestSalaryMonth,
                                   @Param("recruiterUserIdList") List<Long> recruiterUserIdList);
}
